<?php

class CategoryController extends BaseController
{
	public $restul = true;

	public function getIndex()
	{
		$categories = Category::all();

		return Response::json($categories);
	}

	public function getFind($id)
	{
		$category = Category::find($id);

		return Response::json($category);
	}
}	